home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
comm
/
mebbs
/
freqb.lha
/
freqb.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1994-11-26
|
2KB
|
78 lines
/* Build a FREQ file by Larry Cloud M3001 */
start1:
cls=""
say cls||"FREQ Builder by Larry Cloud M3001"
say "Enter address (4D) separated by spaces, example: 1 350 31 0"
say "Or hit Q to abort."
if zone ~="ZONE" then do
say "Or hit enter for "||zone||" "||net||" "||node||" "||point||"."
end
pull adr
if adr="" & zone ~="ZONE" then signal start2
if upper(adr)="Q" then signal getout
parse var adr zone net node point junk
if zone < 1 then signal start
if net="" | node="" then signal start1
if point="" then point="0"
if exists("ram:nodeinfo") then do
address command "delete ram:nodeinfo quiet"
do i=1 to 1000;end
end
address command "findnode "||zone||":"||net||"/"||node||"."||point||" > ram:nodeinfo"
do i=1 to 1000;end
open(file,"ram:nodeinfo",'r')
do i=1 to 5
x=readln(file)
end
x=readln(file)
if x~=" Data not found." then do
do i=1 to 4
x=readln(file)
say x
end
call close(file)
signal start2
end
call close(file)
say "That address is invalid. Please try again."
zone="ZONE"
signal start1
start2:
say "Enter filename to FREQ (or hit ENTER to abort)"
pull filename
if filename="" then signal start5
start3:
say "Enter password (or hit ENTER for NO password)"
password=""
pull password
start4:
op="W"
adrs=zone||"."||net||"."||node||"."||point||".REQ"
if exists("OUT:"||adrs) then op="A"
string="Creating new "
if op="A" then string="Appending to "
say string||"REQ file "||adrs
if password ~="" then filename=filename||" "||password
open(file,"OUT:"||adrs,op)
writeln(file,filename)
close(file)
start5:
say "Again? (Y/n)"
pull question
if upper(question)="N" then signal getout
signal start1
getout:
say "You've been using FREQ Builder by Larry Cloud M3001"
if exists("ram:nodeinfo") then do
address command "delete ram:nodeinfo quiet"
do i=1 to 1000;end
end
exit